import 'package:hive/hive.dart';
part 'data.g.dart';

@HiveType(typeId: 0)
class Order {
  @HiveField(0)
  final String name;
  @HiveField(1)
  final String pic;
  @HiveField(2)
  final String price;
  @HiveField(3)
  final String startTime;
  @HiveField(4)
  final String endTime;

  Order(
      {required this.name,
        required this.pic,
        required this.price,
        required this.startTime,
        required this.endTime});
}

@HiveType(typeId: 1)
class Msg {
  @HiveField(0)
  final String content;
  @HiveField(1)
  final int time;

  Msg({
    required this.content,
    required this.time,
  });
}
